package com.zxw.user.service;

import com.zxw.user.domain.entity.UserRole;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author Xuewei.Zhang
 * @since 2022-02-27
 */
public interface UserRoleService extends IService<UserRole> {

    List<Long> getRoleIds(Long userId);

    Boolean insertBatch(Long userId, List<Long> roleIds);

    void insertInitFlowRole(Long userId);

    Boolean deleteByUserIdAndRoleIds(Long userId, List<Long> roleIds);

    Boolean deleteByUserIds(String userIds);

}
